<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/system.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> OA日志管理 <a href="__ACTION__">【刷新】</a></h1>
     </div>
     <div class="module_public_main">
       <table>
       <tr style="background:#FFC;">    
         <form action="__URL__/OA_query_uname" method="post">  
         <td colspan="7">&nbsp;&nbsp;<b>※根据人员筛选:</b>
         
           <select name="u_id" class="_input">
             <?php if(is_array($e_info)): $i = 0; $__LIST__ = $e_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v["u_id"]); ?>"><?php echo ($v["u_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
           </select>&nbsp;&nbsp;
           <input type="submit" value="查询" class="_button"/>
         </td>
         </form>
       </tr>
       <form action="__URL__/batch_del" method="post">
         <tr>
           <td width="8%" align="center">编号</td>
           <td align="center">操作人姓名</td>
           <td align="center">操作时间</td>
           <td align="center">操作内容</td>
           <td align="center">操作状态</td>
           <td align="center">操作</td>
           <td align="center"><a href="#" id="all_check">全选/<a href="#" id="no_check">全不选</a></td>
         </tr>
         <?php if(is_array($l_info)): $k = 0; $__LIST__ = $l_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
           <td width="8%" align="center"><?php echo ($k); ?></td>
           <td align="center"><?php echo ($v["u_name"]); ?></td>
           <td align="center"><?php echo (date("Y-m-d H:m",$v["l_time"])); ?></td>
           <td align="center"><?php echo ($v["l_content"]); ?></td>
           <?php if($v["l_status"] == '1'): ?><td align="center"><font color=green>√</font></td>
           <?php else: ?>
           <td align="center"><font color=red>x</font></td><?php endif; ?>
           <td align="center">
              <a href="__URL__/del_log/l_id/<?php echo ($v["l_id"]); ?>">删除日志记录</a>
           </td>
           <td align="center"><input type="checkbox" class="check_is" value="<?php echo ($v["l_id"]); ?>" name="check_is[]"/></td>
         </tr><?php endforeach; endif; else: echo "" ;endif; ?>
         <tr>
           <td colspan="6" align="right"><?php echo ($fpage); ?></td>
           <td align="center"><input type="submit" value="删除选中项" class="_button"/></td>
         </tr>
         </form>
       </table>
      </div>
      <script type="text/javascript">
	   //全选/全不选
  		 $("#all_check").click(function(){
	 		 $(".check_is").attr("checked",true);
   			 });
  			 $("#no_check").click(function(){
		 $(".check_is").attr("checked",false);
   			 });
	  </script>
  </div>
</body>
</html>